package com.ruihui.activity.pojo;

import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 团购
 * </p>
 *
 * @author cf123
 * @since 2018-10-31
 */
@TableName("ruihui_acgroup")
public class Acgroup implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 未解散团
     */
    public static final String NOTDISMISS="1,2";
    /**
     * 解散团
     */
    public static final Integer DISMISS=3;
    /**
     * 未成团
     */
    public static final Integer NO=2;
    /**
     * 成团
     */
    public static final Integer YES=1;
    /**
     * 团长
     */
    public static final Integer HEAD=2;
    /**
     * 组员
     */
    public static final Integer MEMBER=1;
    /**
     * 订单支付
     */
    public static final Integer OP=1;
    /**
     * 订单申请退款
     */
    public static final Integer OSB=2;
    /**
     * 订单已退款
     */
    public static final Integer OEB=3;
    /**
     * 订单已发货
     */
    public static final Integer OPP=4;
    /**
     * 订单收货
     */
    public static final Integer OPG=5;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 订单id
     */
    @ApiModelProperty(value="订单id")
    private Long orderid;
    /**
     * 商品id
     */
    @ApiModelProperty(value=" 商品id")
    private Long goodsid;
    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Long userid;
    /**
     * 用户名称
     */
    @ApiModelProperty(value="用户名称")
    private String username;
    /**
     * 状态1成团，2未成团，3解散团
     */
    @ApiModelProperty(value="状态1成团，2未成团，3解散团")
    private Integer state;
    /**
     * 类型1普通成员2团长
     */
    @ApiModelProperty(value="类型1普通成员2团长")
    private Integer type;
    /**
     * 团购发起时间
     */
    @ApiModelProperty(value="团购发起时间")
    private BigDecimal starttime;
    /**
     * 加入团购时间
     */
    @ApiModelProperty(value="加入团购时间")
    private BigDecimal createtime;
    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer del;
    /**
     * 锁
     */
    private Long version;
    /**
     * 组团编号
     */
    @ApiModelProperty(value="组团编号")
    private String groupno;
    /**
     * 描述
     */
    @ApiModelProperty(value="描述")
    private String contents;
    /**
     * 组团人数
     */
    @ApiModelProperty(value="组团人数")
    private Integer pernumber;
    /**
     * 团购商品活动id
     */
    @ApiModelProperty(value="团购商品活动id")
    private Long gacid;
    /**
     * 团购结束时间
     */
    @ApiModelProperty(value="团购结束时间")
    private BigDecimal endtime;
    /**
     * 支付状态1订单支付2订单申请退款3订单已退款4订单发货5订单收货
     */
    @ApiModelProperty(value="支付状态1订单支付2订单申请退款3订单已退款4订单发货5订单收货")
    private Integer paystatus;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderid() {
        return orderid;
    }

    public void setOrderid(Long orderid) {
        this.orderid = orderid;
    }

    public Long getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Long goodsid) {
        this.goodsid = goodsid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getStarttime() {
        return starttime;
    }

    public void setStarttime(BigDecimal starttime) {
        this.starttime = starttime;
    }

    public BigDecimal getCreatetime() {
        return createtime;
    }

    public void setCreatetime(BigDecimal createtime) {
        this.createtime = createtime;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getGroupno() {
        return groupno;
    }

    public void setGroupno(String groupno) {
        this.groupno = groupno;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Integer getPernumber() {
        return pernumber;
    }

    public void setPernumber(Integer pernumber) {
        this.pernumber = pernumber;
    }

    public Long getGacid() {
        return gacid;
    }

    public void setGacid(Long gacid) {
        this.gacid = gacid;
    }

    public BigDecimal getEndtime() {
        return endtime;
    }

    public void setEndtime(BigDecimal endtime) {
        this.endtime = endtime;
    }

    public Integer getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(Integer paystatus) {
        this.paystatus = paystatus;
    }

    @Override
    public String toString() {
        return "Acgroup{" +
        ", id=" + id +
        ", orderid=" + orderid +
        ", goodsid=" + goodsid +
        ", userid=" + userid +
        ", username=" + username +
        ", state=" + state +
        ", type=" + type +
        ", starttime=" + starttime +
        ", createtime=" + createtime +
        ", del=" + del +
        ", version=" + version +
        ", groupno=" + groupno +
        ", contents=" + contents +
        ", pernumber=" + pernumber +
        ", gacid=" + gacid +
        ", endtime=" + endtime +
        ", paystatus=" + paystatus +
        "}";
    }
}
